package com.leagueoflegends.mapper;

import com.leagueoflegends.bean.ChampionSkin;
import com.leagueoflegends.bean.ChampionSkinDTO;
import com.leagueoflegends.bean.ChampionSkinVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ChampionSkinMapper {

    void insert(ChampionSkin skin);

    void deleteById(Integer id);

    void deleteByChampionId(Integer championId);

    void update(ChampionSkin skin);

    List<ChampionSkin> select(Integer championId);

    /**
     * 进入皮肤管理界面查看所有皮肤
     * @return
     */
    List<ChampionSkin> SelectChampionSkin();


//    List<ChampionSkinVO> selectAllVO(@Param("type") String type, @Param("find") String find);
    List<ChampionSkinDTO> selectAllDTO(@Param("type") String type, @Param("find") String find);

}
